package com.eas.biz.dao.statistic.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.eas.biz.dao.statistic.dataobject.QuestionStatisticDO;
import com.eas.biz.dao.statistic.interfaces.QuestionStatisticDao;
import com.eas.biz.framework.BaseQuery;
import com.eas.biz.framework.dao.GenericDaoImpl;

@Repository("questionStatisticDao")
public class QuestionStatisticDaoImpl extends GenericDaoImpl<QuestionStatisticDO> implements
        QuestionStatisticDao {

    public QuestionStatisticDO selectById(long id) {
        return selectById("QuestionStatistic.selectById", id);
    }

    public long insert(QuestionStatisticDO object) {
        return insert("QuestionStatistic.insert", object);
    }

    public int deleteById(long id) {
        return deleteById("QuestionStatistic.deleteById", id);
    }

    public int update(QuestionStatisticDO object) {
        return update("QuestionStatistic.update", object);
    }

    public List<QuestionStatisticDO> selectByQuery(BaseQuery query) {
        return selectByQuery("QuestionStatistic.selectByQuery", query);
    }

    public int countByQuery(BaseQuery query) {
        return countByQuery("QuestionStatistic.countByQuery", query);
    }

    public int deleteByQuery(BaseQuery query) {
        return deleteByQuery("QuestionStatistic.deleteByQuery", query);
    }

}
